<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Table2
 *
 * @author michamaciejewski
 */
class Table2 extends Model {
  public static $connection = 'orm';
  public static $tableName = 'table2';
  public static $primary = 'id';
  public static $hasMany = array(
    'tables' => array(
      'model' => 'Table1',
      'foreign' => 'table2_id'
    )
  );
}
?>
